import sys
if len(sys.argv)!=3:
    quit()

#ouverture fichiers
fic1 = open(sys.argv[1],'r')
fic2 = open(sys.argv[2],'w')
line = fic1.readline()
text=[]
while line :
    if len (line) > 4:
		text.insert(0,line)
    line = fic1.readline()
for i in text:
	fic2.write((i))
fic1.close()
fic2.close()
